import { axios } from '../plugins/request'
export function uploadFile(parameter: any) {
    const formData = new FormData();
    for(const key in parameter) {
        formData.append(key, parameter[key]);
    }
	return axios({
		url: '/file/uploadFile',
		method: 'post',
		data: formData,
        headers: { 'Content-Type': "form-data" }
	})
}